package com.hkts.beltweigher.salve.service.serviceimpl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hkts.beltweigher.salve.entity.WestBeltscalesCumulativedata;
import com.hkts.beltweigher.salve.entity.WestBeltscalesMinitue;
import com.hkts.beltweigher.salve.mapper.WestBeltscalesMinitueMapper;
import com.hkts.beltweigher.salve.service.IWestBeltscalesMinitueService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author hml
 * @since 2024-07-05
 */
@Service
@Transactional
public class WestBeltscalesMinitueServiceImpl extends ServiceImpl<WestBeltscalesMinitueMapper, WestBeltscalesMinitue> implements IWestBeltscalesMinitueService {


    @Autowired
    private WestBeltscalesMinitueMapper westBeltscalesMinitueMapper;

    @Override
    public IPage<WestBeltscalesMinitue> selectPage(Page<WestBeltscalesMinitue> page, WestBeltscalesMinitue westBeltscalesMinitue) {
        QueryWrapper<WestBeltscalesMinitue> query = Wrappers.query();
        return westBeltscalesMinitueMapper.selectPage(page, query);
    }


    @Override
    public List<WestBeltscalesMinitue> selectList(WestBeltscalesMinitue westBeltscalesMinitue) {
        QueryWrapper<WestBeltscalesMinitue> query = Wrappers.query();
        return westBeltscalesMinitueMapper.selectList(query);
    }

    @Override
    public List<WestBeltscalesMinitue> selectWestBeltsCalesMinitueListGt(Integer id) {
        QueryWrapper<WestBeltscalesMinitue> query = Wrappers.query();
        query.lambda().gt(WestBeltscalesMinitue::getId,id);
        return westBeltscalesMinitueMapper.selectList(query);
    }

}
